#include<iostream>
#include<cmath>
using namespace std;
int main(){
  double x,y,m,n;
  cin>>x>>y>>m>>n;
  cout.precision(3);
  cout<<fixed;
  cout<<hypot(x-m,y-n);
}